//
//  UIScrollView+LZContentOffset.m
//  laziz_Consumer
//
//  Created by xbn_iMac on 2016/11/23.
//  Copyright © 2016年 XBN. All rights reserved.
//

#import "UIScrollView+LZContentOffset.h"

@implementation UIScrollView (LZContentOffset)

- (void)setLanguageContentOffset {
    if (self.contentSize.width > SCREEN_WIDTH) {
        if ([LZLanguageManager shareInstance].getLanguageType == LanguageType_Ar) {
            [self setContentOffset:CGPointMake(self.contentSize.width - SCREEN_WIDTH, 0)];
        }
        else {
            [self setContentOffset:CGPointMake(0, 0)];
        }
    }
}

@end
